package pl.skubicha.service.dto.util;

import java.util.Set;

import pl.skubicha.domain.Groups;
import pl.skubicha.domain.Subjects;
import pl.skubicha.domain.Users;
import pl.skubicha.response.GroupDTO;

public class GroupTestUtil {

	public static GroupDTO createDTO( final Integer id, final String groupName, final String numericGroupName, final Set< Users > users, final Set< Subjects > subjects ) {
		final GroupDTO dto = new GroupDTO();
		dto.setId( id );
		dto.setGroupName( groupName );
		dto.setNumericGroupName( numericGroupName );
		dto.setUsers( users );
		dto.setSubjects( subjects );

		return dto;
	}

	public static Groups createModelObject( final Integer id, final String groupName, final String numericGroupName ) {
		final Groups model = new Groups( groupName, numericGroupName );
		model.setId( id );

		return model;
	}

	public static Groups createModelObject( final Integer id, final String groupName, final String numericGroupName, final Set< Subjects > subjects ) {
		final Groups model = new Groups( groupName, numericGroupName );
		model.setId( id );
		model.setSubjects( subjects );

		return model;
	}

}
